<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:84:"D:\PhpStudy\PHPTutorial\WWW\05seo7mb.net\public/../app/admin\view\seo\kwzsprice.html";i:1566981407;s:92:"D:\PhpStudy\PHPTutorial\WWW\05seo7mb.net\public/../app/admin\view\layout\edit_btn_group.html";i:1562986698;}*/ ?>
<div class="box">
    
  <div class="box-header">

    <div class="row">
    	<div class="col-sm-3">
    		
    		<?php $file_id = (isset($info['file_id']) && ($info['file_id'] !== '')?$info['file_id']:'0'); ?>
            <?php echo widget('file/index', ['name' => 'file_id', 'value' => $file_id, 'type' => 'file']); ?>
        <button href="#" onclick="imports();" class="btn btn-xs"><i class="fa fa-edit"></i> 批量导入</button>
        <a href="http://seo.7mb.net/koufeimuban/关键词指数excel.xlsx" target="_blank" class="btn btn-xs label-info"><i class="fa fa-download"></i> 下载模板</a>
         <script>
                function imports(){
                    if ($(".upload-pre-file").children("a:first").text()){
                        var path=$(".upload-pre-file").children("a:first").text();
                        $.ajax({
                            async : false,    //表示请求是否异步处理
                            type : "post",    //请求类型
                            url : "<?php echo url('Seo/keyzsdaoru'); ?>",//请求的 URL地址
                            data:{'path':path},
                            dataType : "json",//返回的数据类型
                            success: function (data) {
                                obalert(data);
                            },
                            error:function (data) {
                                alert(data.result);
                            }
                        });
                    }else {
                        alert("请选择上传的EXCEL表");
                    }


                }

            </script>
    	</div>
    	<div class="col-sm-2">
            
            <ob_link> <a href="<?php echo url('seo/kwzspriceadd'); ?>" class="btn  btn-xs"><i class="fa fa-plus"></i> 新增关键词指数</a></ob_link>
        </div>
        
        <div class="col-sm-7">
            <ob_link> <a href="<?php echo url('seo/kwzsprice',array('search_engin' => '百度')); ?>" class="btn btn-xs" style="background:#33CA35"><i class="fa fa-baidu"></i>百  度</a></ob_link>
            <ob_link> <a href="<?php echo url('seo/kwzsprice',array('search_engin' => '百度移动')); ?>" class="btn btn-xs label-danger"><i class="fa fa-baidu"></i>百度 移动</a></ob_link>
            <ob_link> <a href="<?php echo url('seo/kwzsprice',array('search_engin' => '360')); ?>" class="btn btn-xs" style="background: #4484CA"><i class="fa fa-baidu"></i>360</a></ob_link>
            <ob_link> <a href="<?php echo url('seo/kwzsprice',array('search_engin' => '360移动')); ?>" class="btn btn-xs" style="background: #87CEEB"><i class="fa fa-baidu"></i>360移动</a></ob_link>
            <ob_link> <a href="<?php echo url('seo/kwzsprice',array('search_engin' => '搜狗')); ?>" class="btn btn-xs" style="background: #BF8FCA"><i class="fa fa-baidu"></i>搜狗</a></ob_link>
            <ob_link> <a href="<?php echo url('seo/kwzsprice',array('search_engin' => '搜狗移动')); ?>" class="btn btn-xs label-warning"><i class="fa fa-baidu"></i>搜狗移动</a></ob_link>
            <ob_link> <a href="<?php echo url('seo/kwzsprice',array('search_engin' => '神马')); ?>" class="btn btn-xs" style="background: #008000"><i class="fa fa-baidu"></i>神马</a></ob_link>
        </div>
        
    </div>
    
  </div>
    
  <div class="box-body table-responsive">
    <table  class="table table-bordered table-hover">
      <thead>
      <tr style="text-align: center;">
          
          <th>ID</th>
          <th>第一页/第二页价格</th>
     
          <th>指数范围</th>
       
          <th>搜索引擎</th>
          <th>第一页/第二页成本价格</th>
         
          <th>操作</th>
      </tr>
      </thead>
      
      <?php if(!(empty($list) || (($list instanceof \think\Collection || $list instanceof \think\Paginator ) && $list->isEmpty()))): ?>
        <tbody>
            <?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                <tr style="text-align: center;">
                  <td><?php echo $vo['id']; ?></td>
              	  <td>
                        <div>
                            <div class="je-red" style="color: red;">第1页：<?php echo $vo['page_one']; ?>元</div>
                            <div class="je-blue" style="color: #0074d9;;">第2页：<?php echo $vo['page_two']; ?>元</div>
                        </div>
                  </td>
               	  <td><span>< </span><?php echo $vo['zhisu_range']; ?></td>
				 
                  <td>
                  	<?php if($vo['search_engin'] == '百度'): ?>
                  	   <span class="label" style="background-color: #33ca35"> 百度</span>
                  	<?php elseif($vo['search_engin'] == '百度移动'): ?>
                  	   <span class="label" style="background-color: #ef5350"> 百度移动端</span>
                  	<?php elseif($vo['search_engin'] == '360'): ?>
                  	   <span class="label" style="background-color: #4484ca"> 360</span>
                  	<?php elseif($vo['search_engin'] == '360移动'): ?>
                  	   <span class="label" style="background-color: skyblue"> 360移动</span>
                  	<?php elseif($vo['search_engin'] == '搜狗'): ?>
                  		<span class="label" style="background-color: #bf8fca"> 搜狗</span>
                    <?php elseif($vo['search_engin'] == '搜狗移动'): ?>
                        <span class="label label-warning" style="background-color: #66b5ca"> 搜狗移动端</span>
                    <?php else: ?>
                        <span class="label" style="background-color: green"> 神马</span>
                  	<?php endif; ?>
                  </td> 
                  <td>
                        <div>
                            <div class="je-red" style="color: red;">第1页：<?php echo $vo['chenben_one']; ?>元</div>
                            <div class="je-blue" style="color: #0074d9;;">第2页：<?php echo $vo['chenben_two']; ?>元</div>
                        </div>
                  </td>
                  <td class="col-md-3 text-center">
                  	 <ob_link><a class="btn"  href="<?php echo url('zhishuedit', array('id' => $vo['id'])); ?>"><i class="fa fa-edit"></i> 编 辑</a></ob_link>
                     <ob_link><a class="btn confirm ajax-get"  href="<?php echo url('zhishudel', array('id' => $vo['id'])); ?>"><i class="fa fa-trash-o"></i> 删 除</a></ob_link>
                  </td>
                </tr>
            <?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
        <?php else: ?>
        <tbody><tr class="odd"><td colspan="8" class="text-center" valign="top"><?php echo config('empty_list_describe'); ?></td></tr></tbody>
      <?php endif; ?>
    </table>
  </div>

    <div class="box-footer clearfix text-center">
      <?php echo $list->render(); ?>
  </div>


</div>
<style type="text/css">
	thead>tr>th{text-align: center;}
</style>
<!--
<form action="<?php echo url(); ?>" method="post" class="form_single" enctype="multipart/form-data" style="display: none;">
    <div class="box">
      <div class="box-body">
        <div class="row">
          <div class="col-md-6">
            <div class="form-group">
              <label>选择导入文件</label>
              <input class="form-control" name="excel" placeholder="" value="" type="file">
            </div>
          </div>
          
    
        </div>
      </div>
      <div class="box-footer">
        
        
          
        <button  type="submit" class="btn ladda-button ajax-post" data-style="slide-up" target-form="form_single">
    <span class="ladda-label"><i class="fa fa-send"></i> 确 定</span>
</button>

<a class="btn" onclick="javascript:history.back(-1);return false;"><i class="fa fa-history"></i> 返 回</a>
        
      </div>
    </div>
</form>-->
